package com.wanghua.mall.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author wanghua
 * @create 2021-09-06 21:44
 */
@Data
public class LoginVo {
    @Length(min = 2, max = 20, message = "用户名长度必须在2-20之间")
    @NotEmpty(message = "用户名必须提交")
    private String username;

    @Length(min = 6, max = 20, message = "密码长度必须在6-20之间")
    @NotEmpty(message = "密码必须提交")
    private String password;
}
